﻿CREATE TABLE [dbo].[CartonTypePart] (
    [Id]                 UNIQUEIDENTIFIER DEFAULT (newid()) NOT NULL,
    [LengthExpression]   NVARCHAR (250)   NOT NULL,
    [WidthExpression]    NVARCHAR (250)   NOT NULL,
    [Amount]             INT              NOT NULL,
    [LastModifiedTime]   DATETIME         NOT NULL,
    [LastModifiedUserID] UNIQUEIDENTIFIER NOT NULL,
    [ContonTypeId]       UNIQUEIDENTIFIER NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FKB4B903D011E65B0E] FOREIGN KEY ([LastModifiedUserID]) REFERENCES [dbo].[UserProfile] ([ID]),
    CONSTRAINT [FKB4B903D0BCA3E597] FOREIGN KEY ([ContonTypeId]) REFERENCES [dbo].[CartonType] ([Id])
);

